package org.erp.store.infrastructure.remote;

import org.erp.common.domain.Result;
import org.erp.store.domain.dto.DeviceInventoryRemoteDto;
import org.springframework.cloud.openfeign.FeignClient;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import static org.erp.common.domain.Result.success;

@FeignClient(name="xh-erp-procurement",url = "http://192.168.116.14:10003/")
public interface ProductFeignClient {


    /**
     * 回调接口
     * @param deviceInventoryRemoteDto
     * @return
     */
    @PostMapping("connect/callback")
    public Result<String> productCallback(@RequestBody DeviceInventoryRemoteDto deviceInventoryRemoteDto);

}